﻿using Newtonsoft.Json;

namespace XSot.BitBrowser.LocalApiClient.Model
{
    public class BitBrowserOpenResult
    {
        /// <summary>
        /// 连接浏览器的Websocket地址
        /// </summary>
        [JsonProperty("ws")]
        public string WebsocketUrl { get; set; } = string.Empty;
        /// <summary>
        /// 连接浏览器的HTTP地址
        /// </summary>
        [JsonProperty("http")]
        public string HttpUrl { get; set; } = string.Empty;
        /// <summary>
        /// 浏览器的版本
        /// </summary>
        [JsonProperty("coreVersion")]
        public string CoreVersion { get; set; } = string.Empty;
        /// <summary>
        /// 程序路径
        /// </summary>
        [JsonProperty("driver")]
        public string Driver { get; set; } = string.Empty;
        /// <summary>
        /// 序号
        /// </summary>
        [JsonProperty("seq")]
        public int Seq { get; set; }
        /// <summary>
        /// 窗口名称
        /// </summary>
        [JsonProperty("name")]
        public string? Name { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [JsonProperty("remark")]
        public string? Remark { get; set; }
        /// <summary>
        /// 系统中的进程ID
        /// </summary>
        public int Pid { get; set; }
        /// <summary>
        /// 所在分组编号
        /// </summary>
        [JsonProperty("groupId")]
        public string? GroupId { get; set; }
    }
}
